﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TimViec
{
    public partial class NTDDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["NTD"] == null)
            {                            
                Response.Redirect("/nha-tuyen-dung.html");
            }
            if(!IsPostBack)
            {
                LoadData();
            }
        }
        public void LoadData()
        {
            rptTinTD.DataSource = BLL.ArticleHelper.Top_BV_Valueconfig("TVTD", 0, 10);
            rptTinTD.DataBind();
            //
            rptTopTinDaDang.DataSource = BLL.TuyenDung.DangTuyenHelper.List_Top_ViecLamDaDang(10);
            rptTopTinDaDang.DataBind();
            lbCVDaDang.Text = BLL.TuyenDung.DangTuyenHelper.SoCV_DaDang().ToString();
        }
    }
}